package com.tanhua.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//因为Mongo数据库不需要使用mapper层来操作数据库,所以不需要进行包扫描
@EnableAsync
//开启线程池管理,主要解决动态保存时间较久的问题
public class MongoApplication {
    public static void main(String[] args) {
        SpringApplication.run(MongoApplication.class,args);
        System.out.println("进入到MongoApplication的引导类");
    }
}
